package org.mathcloud.math.core.generic.operator;

import org.mathcloud.math.core.common.operator.OperatorObject;
import org.mathcloud.math.core.common.quantity.QuantityObject;
import org.mathcloud.math.core.common.signature.OperatorObjectSignature;
import org.mathcloud.math.core.common.signature.QuantityObjectSignature;

public abstract class GenericOperator implements OperatorObject
{
	@Override
	public QuantityObject getResult()
	{
		return res;
	}
	
	@Override
	public QuantityObjectSignature getResultSignature()
	{
		if (res!=null) 
			return res.getSignature();
		else return null;
	}

	@Override
	public OperatorObjectSignature getSignature()
	{
		return signature;
	}
	
	protected QuantityObject res;
	protected OperatorObjectSignature signature;
}
